package com.qf.test;

import org.junit.Test;
import redis.clients.jedis.Jedis;

/**
 * jedis入门操作
 */
public class Demo1 {

    @Test
    public void test(){
        //1. 连接Redis
        Jedis jedis = new Jedis("192.168.41.41",6379);

        //---------------------------------------------
        //2. 操作
        jedis.set("birthday","2011-11-11");

        //---------------------------------------------
        //3. 释放资源
        jedis.close();
    }

}
